﻿/* 
 * Godtear.com
 * QQ:bzure@189.cn
 *Author:Nathan Liu
 */
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using Bzure.Common.Core;

namespace Bzure.Common.Configuration.AppConfiguration
{
    public abstract class ConfigurationSection :ConfigurationBase , IBlock 
    {
        public ConfigurationSection()
        {
        }
        public abstract string BlockName { get; }
        public string Name { get; protected set; }
        public override void Load(XmlNode node)
        {
            XmlAttributeCollection attributes = node.Attributes;
            XmlAttribute  attribute = attributes["name"];
            Name = attribute == null ? null : attribute.Value;
            base.Load(node);
        }
    }        
}
